<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
function pluginload(){ 
	$ci=&get_instance();
	$ci->load->model("pluginmodel");
	$plugin = $ci->pluginmodel;
	if($plugin_list = $plugin->getActivePlugins()){
		foreach($plugin_list as $item)
		include(APPPATH."plugin/".$item->name."/".$item->name.".php");
	}
}
?>